package com.ccrfid.rmc6.repository.toolcase;

import com.ccrfid.rmc6.entity.toolcase.ToolEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface ToolRepository extends Repository<ToolEntity, Long> {

    List<ToolEntity> getAllByToolCaseId(Long toolCaseId);

    void deleteAllByToolCaseId(Long toolCaseId);

    ToolEntity getById(Long id);

    ToolEntity save(ToolEntity entity);

    Boolean existsById(Long id);

    void deleteById(Long id);
}
